@import './base';

html {
    scroll-behavior: smooth;
}

.container {
    width: 1100px;
    margin: 0 auto;
}

// 网页头部
.mall-header {
    height: 73px;

    .mall-logo {
        float: left;
        margin-right: 300px;

        a {
            display: block;
            width: 290px;
            height: 70px;
            background: url(../images/modules.png) no-repeat -1px -48px;
        }
    }

    .mall-search {
        position: relative;
        float: left;
        width: 300px;
        height: 70px;
        margin-right: 40px;

        .search {
            width: 100%;
            height: 38px;
            margin-top: 15px;
            background: url(../images/modules.png) no-repeat 0 0;

            input {
                margin: 12px 0 0 34px;
                color: #767575;
                font-size: 12px;
            }
        }

        .hotsearch {
            display: none;
            position: absolute;
            z-index: 99;
            top: 58px;
            left: 0;
            width: 300px;
            background-color: #fff;
            box-shadow: 0 4px 7px #555;
            text-shadow: 0 1px 0 rgb(255 255 255 / 90%);

            h5 {
                width: 100%;
                height: 33px;
                padding-left: 20px;
                border-bottom: 1px solid #eeeeee;
                line-height: 33px;
                font-size: 12px;
                font-weight: 700;
            }

            ul {
                a {
                    display: block;
                    width: 100%;
                    height: 34px;
                    padding-left: 20px;
                    color: #888;
                    font-size: 14px;
                    line-height: 34px;

                    &:hover {
                        background-color: #f5f5f5;
                    }
                }
            }
        }
    }


    .mall-shoppingCart {
        position: relative;
        float: left;
        width: 36px;
        height: 36px;
        margin: 17px 37px 0 0;

        a {
            display: block;

            i {
                color: #000;
                font-size: 34px;
            }
        }

        &::after {
            content: '0';
            position: absolute;
            top: -8px;
            left: 20px;
            display: block;
            padding: 2px 7px;
            border-radius: 18px;
            background-color: #d33a31;
            color: #fff;
            font-size: 14px;
            text-align: center;
            line-height: 18px;
        }
    }

    .mall-logister {
        position: relative;
        float: left;
        width: 62px;
        height: 70px;

        .logister {
            width: 62px;
            height: 36px;
            margin-top: 15px;

            a {
                float: left;
                width: 36px;
                height: 100%;
                text-align: center;
                line-height: 36px;
                color: #000;
                font-size: 14px;
            }

            i {
                float: right;
                margin-top: 12px;
                font-size: 14px;
            }
        }

        .register {
            display: none;
            position: absolute;
            z-index: 100;
            top: 66px;
            left: -44px;
            width: 160px;
            background-color: #fff;
            box-shadow: 0 4px 7px #555;
            text-shadow: 0 1px 0 rgb(255 255 255 / 90%);

            a {
                display: block;
                width: 100%;
                height: 34px;
                padding-left: 24px;
                color: #000;
                font-size: 12px;
                line-height: 34px;

                i {
                    color: #666;
                    font-size: 16px;
                    margin-right: 9px;
                }

                &:hover {
                    background-color: #f8f8f8;
                }
            }

            .triangle {
                position: absolute;
                top: -18px;
                left: 0;
                width: 100%;
                height: 19px;
                background: url(../images/modules.png) no-repeat 0 -128px;
            }
        }
    }
}

// 轮播图部分
.mall-banner {
    position: relative;
    width: 100%;
    height: 480px;

    ol {
        position: absolute;
        bottom: 30px;
        left: 50%;
        z-index: 99;
        transform: translateX(-50%);

        li {
            float: left;
            width: 6px;
            height: 6px;
            margin: 0 3px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, .5);
        }

        .active {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #da4037;
        }
    }

    .prev,
    .next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 37px;
        height: 63px;
        opacity: 0.4;
    }

    .prev {
        left: 10px;
        background: url(../images/pointlist.png) no-repeat -3px 0px rgba(0, 0, 0, .3);
    }

    .next {
        right: 10px;
        background: url(../images/pointlist.png) no-repeat -50px 0px rgba(0, 0, 0, .3);
    }
}

// 导航栏部分
.mall-navs {
    width: 100%;
    height: 80px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e6e6e6;

    .line {
        float: left;
        width: 1px;
        height: 48px;
        margin: 16px 0;
        background-color: #e6e6e6;
    }

    .nav {
        float: left;

        a {
            display: block;
            width: 270px;
            height: 80px;
            text-align: center;
            line-height: 80px;

            .pic {
                display: inline-block;
                vertical-align: middle;
                width: 48px;
                height: 48px;
                margin-right: 12px;

                img {
                    width: 100%;
                    height: 100%;
                }
            }

            span {
                color: #000;
                font-weight: 700;
            }

            .yunbei {
                display: inline-block;
                vertical-align: middle;
                width: 64px;
                height: 100%;
                line-height: 18px;
                padding-top: 22px;

                span {
                    display: inline-block;
                    color: #d33a31;
                    font-weight: 400;
                }

                .m {
                    color: #000;
                    font-weight: 700;
                }
            }
        }

    }
}

//两张图片展示部分
.mall-pic {
    height: 300px;
    margin-bottom: 50px;

    a {
        display: block;
        width: 542px;
        height: 100%;

        img {
            width: 100%;
            height: 100%;
        }
    }

    .left {
        float: left;
    }

    .right {
        float: right;
    }
}

// 编辑推荐部分
.mall-recommend,
.mall-hotsale {
    margin-bottom: 10px;

    .title {
        height: 50px;

        h2 {
            font-size: 24px;
            font-weight: 700;
        }
    }

    .recommend-items,
    .hotsale-items {
        width: 100%;

        li {
            float: left;
            width: 263px;
            height: 382px;
            margin-right: 16px;

            .pic {
                width: 263px;
                height: 263px;
                background-color: #f9f9f9;

                img {
                    width: 100%;
                    height: 100%;
                }
            }

            .info {
                width: 100%;
                height: 109px;
                margin-top: 10px;
                color: #d74d45;
                text-align: center;

                .disc {
                    padding: 0 3px;
                    margin-right: 3px;
                    border: 1px solid #d74d45;
                    color: #d74d45;
                    font-size: 12px;
                    line-height: 18px;
                }

                p {
                    font-size: 14px;
                    margin-bottom: 4px;

                    a {
                        color: #000;

                        &:hover {
                            text-decoration: underline;
                        }
                    }
                }

                .price {
                    font-size: 16px;
                }
            }

            &:nth-child(4n+1) {
                margin-right: 0;
            }
        }
    }
}

//数字专辑部分
.mall-digital-album {
    position: relative;
    height: 180px;
    margin-bottom: 50px;
    background-color: #f9f9f9;

    .infos {
        width: 700px;
        height: 100%;
        margin-left: 60px;
        color: #000;

        h2 {
            padding-top: 28px;
            font-size: 32px;
            font-weight: 700;

            &::before {
                content: '';
                display: inline-block;
                vertical-align: middle;
                width: 32px;
                height: 32px;
                margin-right: 8px;
                background: url(../images/digitalicon.png) no-repeat;
            }
        }

        p {
            margin: 9px 0 18px 0;
            font-size: 16px;
        }

        a {
            color: #000;
            font-size: 24px;
            font-weight: 700;
        }
    }

    .album1 {
        position: absolute;
        z-index: 88;
        top: 56px;
        right: 162px;
        width: 100px;
        height: 100px;
    }

    .album2 {
        position: absolute;
        top: 42px;
        right: 82px;
        z-index: 99;
        width: 120px;
        height: 120px;
    }

    .album {
        position: absolute;
        top: 45px;
        right: 50px;
        z-index: 88;
        width: 35px;
        height: 120px;
        background: url(../images/pointlist.png) no-repeat 0 -79px;
    }
}

//热门商品部分
.mall-hotsale {
    margin-bottom: 100px;
}

//网页底部部分
.mall-footer {
    height: 160px;
    background-color: #f2f2f2;

    .copyright {
        float: left;
        padding-top: 22px;
        font-size: 12px;
        color: #666;
        line-height: 24px;

        .links {
            color: #999;

            a {
                color: #999;
            }

            span {
                margin: 0 8px;
            }
        }

        p {
            .confirmation {
                margin-left: 14px;
                color: #666;
            }
        }
    }

    .nav {
        float: right;
        margin-top: 30px;

        li {
            float: left;

            a {
                display: block;
                width: 60px;
                height: 70px;
                margin-left: 30px;
                background: url(../images/foot_enter.png) no-repeat -60px -76px;
            }

            &:nth-child(2) a {
                background: url(../images/foot_enter.png) no-repeat 0px -76px;
            }

            &:nth-child(3) a {
                background: url(../images/foot_enter.png) no-repeat 0 4px;
            }

            &:nth-child(4) a {
                background: url(../images/foot_enter.png) no-repeat -60px 4px;
            }
        }
    }
}

//回到顶部部分
.mall-tohead {
    position: absolute;
    left: 50%;
    margin-left: 570px;
    top: 674px;
    z-index: 98;
    width: 62px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    background-color: #fff;
    text-align: center;

    ul {
        li {
            width: 60px;
            height: 60px;
            padding-top: 13px;
            border-bottom: 1px solid #e5e5e5;
            color: #666;
            line-height: 1.5;

            a {
                color: #666;
            }
        }

        .cart,
        .kefu {
            padding-top: 6px;
            color: #333;

            i {
                font-size: 20px;
                font-weight: 700;
            }
        }

        .cart {
            position: relative;

            &::after {
                content: '0';
                position: absolute;
                top: 2px;
                left: 30px;
                display: block;
                padding: 1px 5px;
                border-radius: 18px;
                background-color: #d33a31;
                color: #fff;
                font-size: 12px;
                text-align: center;
                line-height: 14px;
            }
        }
    }

    .tohead {
        display: none;

        a {
            display: block;
            width: 70px;
            height: 35px;
            background: url(../images/totop.png) no-repeat -70px 0;
        }
    }
}

.mall-wrap {
    position: fixed;
    left: 50%;
    margin-left: 570px;
    top: 50%;
    margin-top: -138px;
}